﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MarvellousWorks.PracticalPatternNet8.Concept.Indexer;

public class MultiColumnCollection
{
    private static DataSet data = new DataSet();
    static MultiColumnCollection()
    {
        DataTable table = new DataTable("MultiColumnTable");
        table.Columns.Add("ID", typeof(int));
        table.Columns.Add("Name", typeof(string));
        table.Columns.Add("Age", typeof(int));
        table.Rows.Add(1, "Alice", 30);
        table.Rows.Add(2, "Bob", 25);
        table.Rows.Add(3, "Charlie", 35);
        data.Tables.Add(table);
    }
    public static DataSet Data
    {
        get { return data; }
    }
}
